<section class="services">
    <?php foreach($services as $key=>$service):?>
    <div class=" col-xs-6 col-sm-3 col-md-3 ">
        <div class="service-block">
            <div class="service-block-thumb">
                <img src="/files/images/<?php echo $service['BlockHome']['image']?>" alt="" class="img-responsive" />
            </div>
            <h3><a href="<?php echo $service['BlockHome']['link']?>"><?php echo $service['BlockHome']['name' . $code]?></a></h3>
        </div>
    </div>
    <?php endforeach;?>
</section>